<template>
  <button @click="send">发送请求</button>
</template>
<script setup>
import axios from "axios";

function send() {
  axios
    .get("/api/user/list")
    .then((res) => {
      console.log(res);
    })
    .catch((err) => {
      console.log(err);
    });
}
</script>
